package com.imti.mall.feign.clients;

import com.imti.mall.common.Api.CommonResult;
import com.imti.mall.model.cms.pojo.CmsSubject;
import com.imti.mall.model.pms.pojo.PmsBrand;
import com.imti.mall.model.pms.pojo.PmsProduct;
import com.imti.mall.model.pms.pojo.PmsProductAttributeCategory;
import com.imti.mall.model.pms.pojo.PmsProductCategory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * ClassName: PmsProductCategoryFeignClient
 * Description:
 * date: 2022/9/13 18:01
 *
 * @author: youhun
 * @version:
 * @since JDK 1.8
 */
@FeignClient(name = "imti-mall-product", contextId = "product")
public interface PmsProductCategoryFeignClient {
    @GetMapping("/api/v1/product/getProductToSale/{id}")
    public PmsProduct getProductToSale(@PathVariable("id") Integer id);


    @GetMapping(value = "/api/v1/product/brand/getPmsBrandByIdTo/{Id}")
    public PmsBrand getPmsBrandByIdTo(@PathVariable("Id") Integer Id);

   @GetMapping ("/api/v1/product/getCmsSubject/{id}")
    public CmsSubject getCmsSubject(@PathVariable("id") Long id);
}
